package org.cuit.echo.seon;

// 客户端代码
public class FacadePatternExample {
    public static void main(String[] args) {
        // 创建子系统对象
        Light light = new Light();
        SoundSystem soundSystem = new SoundSystem();
        Projector projector = new Projector();

        // 创建外观对象
        HomeTheaterFacade homeTheater = new HomeTheaterFacade(light, soundSystem, projector);

        // 使用外观来简化操作
        homeTheater.watchMovie();
        System.out.println();
        homeTheater.endMovie();
    }
}